package com.dapeis.domain;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.web.multipart.MultipartFile;

import com.ag.core.base.Domain;
import com.dapeis.core.utils.StylistConstants;

/**
 * 搭配师方案
 * 
 * @author asus
 * 
 */
@Table(name = "dps_plan")
public class Plan extends Domain {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1955654286331158430L;

	@Id
	@GeneratedValue(generator = "JDBC")
	Integer id;

	Integer collocationId;// 搭配师id

	String planName;// 方案名称

	String content;// 搭配描述文字

	String masterImage;// 主图

	String imageIds;// 搭配图片

	Long createTime;// 创建时间
	
	Integer awardNum = 0;//打赏
	
	Integer agreeNum = 0;//点赞数
	
	Integer state = StylistConstants.State.NORMAL;//默认是正常的

	Integer publish = StylistConstants.PlanState.SAVE;;// 标记是否保存草稿箱或者发布
	
	@Transient
	Integer agreeValue = StylistConstants.Agree.NO; //组装数据,该字段数据库中无字段.组装数据用

	public static final String PROPERTY_STATE = "state";
	public static final String PROPERTY_ISSUE = "publish";
	public static final String PROPERTY_COLLOCATIONID= "collocationId";
	public static final String PROPERTY_CREATETIME = "createTime";
	public static final String PROPERYT_ID = "id";
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPlanName() {
		return planName;
	}
	
	public Integer getPublish() {
		return publish;
	}

	public void setPublish(Integer publish) {
		this.publish = publish;
	}

	public void setPlanName(String planName) {
		this.planName = planName;
	}
	
	
	public String getContent() {
	    return content;
	}

	public void setContent(String content) {
	    this.content = content;
	}

	public Integer getCollocationId() {
		return collocationId;
	}

	public void setCollocationId(Integer collocationId) {
		this.collocationId = collocationId;
	}

	public String getMasterImage() {
		return masterImage;
	}

	public void setMasterImage(String masterImage) {
		this.masterImage = masterImage;
	}

	public String getImageIds() {
		return imageIds;
	}

	public void setImageIds(String imageIds) {
		this.imageIds = imageIds;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public static String getPropertyIssue() {
		return PROPERTY_ISSUE;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getAwardNum() {
	    return awardNum;
	}

	public void setAwardNum(Integer awardNum) {
	    this.awardNum = awardNum;
	}

	public Integer getAgreeNum() {
	    return agreeNum;
	}

	public void setAgreeNum(Integer agreeNum) {
	    this.agreeNum = agreeNum;
	}

	public Integer getAgreeValue() {
	    return agreeValue;
	}

	public void setAgreeValue(Integer agreeValue) {
	    this.agreeValue = agreeValue;
	}

	

}
